package com.eva.framework.rbac.trace;

import org.springframework.web.servlet.HandlerInterceptor;

/**
 * 跟踪日志拦截器接口
 * 在具体的RBAC实现中实现该拦截器，完成跟踪日志的拦截
 */
public interface TraceInterceptor extends HandlerInterceptor {

    String ATTRIBUTE_TRACE_ID = "eva-trace-id";

    String ATTRIBUTE_TRACE_TIME = "eva-trace-time";

    int MAX_STORE_REQUEST_PARAM_SIZE = 1888;

    int MAX_STORE_REQUEST_RESULT_SIZE = 1888;

    int MAX_STORE_EXCEPTION_STACK_SIZE = 4888;

    String MORE_DETAIL_STRING = "\n\n---------- more content is ignore here ... ----------\n\n";
}
